package com.twu.biblioteca;

class User {

    private final String id;

    private String password;

    private String name;

    private String emailAddress;

    private String phoneNumber;

    User(String id) {
        this.id = id;
    }

    void setPassword(String password) {
        this.password = password;
    }

    boolean hasPassword(String password) {
        return password.equals(this.password);
    }

    String getId() {
        return id;
    }

    String getUsername() {
        return id;
    }

    void setName(String name) {
        this.name = name;
    }

    String getName() {
        return name;
    }

    void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    String getEmailAddress() {
        return emailAddress;
    }

    void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    String getPhoneNumber() {
        return phoneNumber;
    }

}
